// 这里，从@reduxjs/toolkit 库导入 configureStore函数
import { configureStore } from "@reduxjs/toolkit";

import cardSingleReducer from "./configureStore/reducer";

const store = configureStore({
  reducer: { cardSingleReducer: cardSingleReducer },
});

export type RootState = ReturnType<typeof store.getState>;

// 添加一个类型上的约束
export type AddDispatch = typeof store.dispatch;

export default store;
